package cn.ryh.netty.websocket.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * netty websocket配置类
 * @author Raoyh
 * @Description
 * @create 2023-02-23 9:51
 */
@Component
@ConfigurationProperties(prefix = "websocket")
@Data
public class WebsocketPropertie {
    /**
     * websocket
     */
    private Boolean enable;
    /**
     * netty监听的端口
     */
    private int port;
}
